package com.onepiece.shipelves.common.enums;

/**
 * @author guoyanjiang
 * @date 2019-11-17
 */
public enum Web {
    All("all"),
    BTC8("8btc"),
    NEWS("news"),
    CHAINNODE("chainnode"),
    QKL123("qkl123"),
    ;

    public String code;

    Web(String code) {
        this.code = code;
    }

    public static boolean contain(String sourceSite) {
        for (Web item : values()) {
            if (item.code.equalsIgnoreCase(sourceSite)) {
                return true;
            }
        }
        return false;
    }
}
